package com.future.hedongjun.mine.bean.response;

import com.future.baselib.entity.BaseResponse;
import com.future.hedongjun.mine.bean.DeliveryAddressBean;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.List;

public class AddressResponse extends BaseResponse {

    public List<DeliveryAddressBean> data;

    @Override
    public void parseInfo(String content) throws JSONException {
        data = new Gson().fromJson(new JSONObject(content).optString("list"),new TypeToken<List<DeliveryAddressBean>>(){}.getType());
    }
}
